html, body, div, span, applet, object, iframe,
h1, h2, h3, h4, h5, h6, p, blockquote, pre,
a, abbr, acronym, address, big, cite, code,
del, dfn, img, ins, kbd, q, s, samp,
small, strike, sub, sup, tt, var,
b, u, i, center,
dl, dt, dd, ol, ul, li,
fieldset, form, label, legend,
table, caption, tbody, tfoot, thead, tr, th, td,
article, aside, canvas, details, embed, 
figure, figcaption, footer, header, hgroup, 
menu, nav, output, ruby, section, summary,
time, mark, audio, video {
	margin: 0;
	padding: 0;
	border: 0;
	font-size: 100%;
	font: inherit;
	vertical-align: baseline;
}
/* HTML5 display-role reset for older browsers */
article, aside, details, figcaption, figure, 
footer, header, hgroup, menu, nav, section {
	display: block;
}
body {
	line-height: 1;
}
ol, ul {
	list-style: none;
}
blockquote, q {
	quotes: none;
}
blockquote:before, blockquote:after,
q:before, q:after {
	content: '';
	content: none;
}
table {
	border-collapse: collapse;
	border-spacing: 0;
}

a{
    text-decoration: none;
    &:hover{
        text-decoration: none;
    }
}
html,body,*{
    font-family: "Hiragino Sans GB", "Microsoft YaHei", "SimSun";
}

body{
    background-color: #ffffff;
}

@greenColor: #6dbb32;
@greenBackgroundColor: #a3db78;

.button{
    padding: 12px 40px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    border-radius: 36px;
    -webkit-appearance: none;
    color: #fff;
    font-size: 1rem;
    &.white{
        color: #000;
        background-color: #fff;
        border: 1px solid #fff;
    }
}

.sticky-wrapper{
    position: relative;z-index: 100;
    &.stick-header{
        height: 40px !important;
        @standardHeight: 30px;
        header{
            height: 2 * @standardHeight;
            padding: @standardHeight/2 0;
            .header{
                height: @standardHeight;
                .logo{
                    height: @standardHeight;
                    line-height: @standardHeight;
                    background-size: 30px auto;
                    font-size: 1em;
                }
                nav{
                    height: @standardHeight;
                    ul{
                        li{
                            height: @standardHeight;
                            a{
                                height: @standardHeight;
                                line-height: @standardHeight;
                                font-size: .9em;
                            }
                        }
                    }
                }
            }
        }
    }
}

header{
    @standardHeight: 60px;
    width: 100%;
    height: 2 * @standardHeight;
    padding: @standardHeight/2 0;
    background-color: #a3db78;
    z-index: 100;
    .header{
        height: @standardHeight;
        transition: all .2s;
        .logo{
            height: @standardHeight;
            line-height: @standardHeight;
            display: block;
            text-indent: 50px;
            font-size: 1.5em;
            background: url("/assets/images/logo.svg") left center no-repeat;
            color: #ffffff;
            background-size: 40px auto;
        }
        nav{
            height: @standardHeight;
            ul{
                float: right;
                li{
                    height: @standardHeight;
                    padding: 0 1em;
                    display: inline-block;
                    a{
                        height: @standardHeight;
                        line-height: @standardHeight;
                        color: rgba(0,0,0,.6);
                        &:hover{
                            text-decoration: underline;
                        }
                    }
                    &.active{
                        a{
                            font-weight: bold;
                        }
                    }
                }
            }
        }
    }
}

.index-search{
    width: 100%;
    background-color: #a3db78;
    padding: 2em 0;
}

.index-news{
    background-color: #b8d9ff;
    color:#00499e;
    font-size: .8em;
    padding: 1.5em 0;
    text-align: center;
    a{
        text-decoration: underline;
        color: #00499e;
        font-weight: bold;
    }
}

.index-section-list{
    margin: 4em 0;
    section{
        margin-bottom: 4em;
        position: relative;
        h2{
            font-size: 2em;
            text-align: center;
            margin-bottom: 1em;
        }
        .description{
            margin-bottom: 2em;
            color: #5a6d71;
            text-align: center;
        }
        .more-link{
            position: absolute;
            z-index: 2;
            right: 0;
        }

        .lists{
            li{
                a{
                    background-color: #ffffff;
                    transition: box-shadow .2s ease,border-color .2s ease;
                    display: block;
                    padding: .5em;
                    border-radius: 1em;
                    .img{
                        width: 30%;
                        display: inline-block;
                    }
                    .meta{
                        width: 68%;
                        display: inline-block;
                        vertical-align:top;
                        line-height: 40px;
                        p{
                            color: #5a6d71;
                        }
                    }
                }

                &:nth-child(n+3){
                    margin-top: 1em;
                }
            }
        }
        &:last-child{
            margin-bottom: 0;
        }
    }
}

.utilities{
    color: #898989;
    display: inline-block;
    ul{
        line-height: 1.3;
        li{
            display: inline-block;
            line-height: 1.3;
            a{
                color: #000;
                transition: color .1s;
                font-size: .9em;
                height: 40px;
                line-height: 40px;
            }
            :after{
                content: "";
                background: url("/assets/images/breadcrumb.png") center bottom no-repeat;
                background-size: 16px 16px;
                height: 20px;
                margin-left: 3px;
                margin-right: 3px;
                transform: translateY(4px);
                display: inline-block;
                width: 16px;
            }
            &:last-child{
                :after{
                    display: none;
                }
            }
        }
    }

    .utility-actions{
        margin: 0 0 0 auto;
        display: flex;
        justify-content: flex-end;
        flex-wrap: wrap;
        flex: 1 1 auto;
        #github-link{
            padding: 10px 20px;
            line-height: 1rem;
            transition: border-color .1s cubic-bezier(0,0,.22,.88),color .1s cubic-bezier(0,0,.22,.88);
            border: 1px solid #5a6d71;
            color: #5a6d71;
            border-radius: 36px;
            &:before{
                content: "";
                display: inline-block;
                width: 22px;
                height: 18px;
                vertical-align: sub;
                background: url("/assets/images/GitHub-Mark-32px.png") no-repeat;
                background-size: contain;
                opacity: .7;
                transition: opacity .1s cubic-bezier(0,0,.22,.88);
            }
        }
    }
}

.markdown-sync{
    padding: 2rem 0;
    h1,h2,h3,h4{
        font-weight: 700;
        a{
            text-decoration: underline;
        }
    }
    h1{
        font-size: 2.1rem;
    }
    h2{
        margin: 1.8rem 0 1rem 0;
        font-size: 1.8rem;
    }
    h3{
        margin: 1.6rem 0 1rem 0;
        font-size: 1.6rem;
    }
    h4{
        margin: 1.3rem 0 1rem 0;
        font-size: 1.3rem;
    }
    p{
        margin: .5rem 0 1rem 0;
        line-height: 160%;
    }
    img{
        margin-top: 1rem;
        max-width: 94%;
        display: block;
    }
    em{
        font-size: .9em;
    }
    a{
        color: @greenColor;
    }
    ul,ol{
        list-style: disc;
        padding-left: 1.8rem;
        li{
            line-height: 160%;
            padding: .2rem 0;
        }
    }
    ol{
        list-style: decimal;
    }
    code{
        border: 1px solid rgba(127,148,153,.44);
        background-color: #fff;
        padding: .1rem .8rem;
        border-radius: .5rem;
        font-size: .9em;
        margin: 0 .2rem;
        vertical-align: bottom;
        color: #000;
    }
    pre{
        background-color: #333;
        margin: 1rem 0;
        color: #fff;
        font-size: .9rem;
        line-height: 1.4em;
        padding: 20px 30px;
        font-family: Consolas,Menlo,Monaco,Lucida Console,Liberation Mono,DejaVu Sans Mono,Bitstream Vera Sans Mono,Courier New,monospace,serif;
        code{
            border: none;
            background-color: inherit;
            padding: 0;
            margin: 0;
            color: inherit;
        }
    }
    blockquote{
        border-left: 4px solid #ddd;
        color: #777;
        padding: 0 1rem;
    }
    table{
        tr{
            background-color: #fff;
            th{
                text-align: left;
                padding: 6px 13px;
                font-weight: 700;
                border: 1px solid #ccc;
            }
            td{
                border: 1px solid #ccc;
                text-align: left;
                padding: 6px 13px;
            }
            &::nth-child(2n){
                background-color: #f8f8f8;
            }
        }
    }
}

.no-result{
    padding: 4rem 0;
    text-align: center;
    font-size: 2rem;
}

.has-sidebar{
    background-color: #f5fbf1;
    min-height: 600px;
    .page-content{
        height: 100%;
    }
    .sidebar-area,.main-area{
        height: auto;
        padding-top: 2em;
        padding-bottom: 2em;
    }


    .sidebar-area{
        ul{
            margin-left: 5px;
            padding-left: 10px;
            transition: max-height .3s ease-in-out;
            h3,h4,h5{
                padding: .75em 0;
            }
            &.level-1{
                li{
                    h3{
                        font-size: 1.1em;
                    }
                    a{
                        color: rgba(0,0,0,.8);
                    }
                    &.active{
                        h3{
                            a{
                                color: #6dbb32;
                            }
                        }
                    }
                    &.open{
                        ul{
                            &.level-2{
                                display: block;
                            }
                        }
                    }
                    ul{
                        &.level-2{
                            border-left: 1px solid #bee6a0;
                            display: none;
                            li{
                                h4{
                                    font-size: .9em;
                                }
                                &.active{
                                    h4{
                                        a{
                                            color: #6dbb32;
                                        }
                                    }
                                }
                                &.open{
                                    ul{
                                        &.level-3{
                                            display: block;
                                        }
                                    }
                                }
                                ul{
                                    &.level-3{
                                        display: none;
                                        border-left: 1px solid #daf0c9;
                                        li{
                                            h5{
                                                font-size: .8em;
                                            }
                                            &.active{
                                                h5{
                                                    a{
                                                        color: #6dbb32;
                                                    }
                                                }
                                            }
                                        }
                                    }
                                }
                            }
                        }
                    }
                }
            }
        }
    }

    .main-area{
        background-color: #ffffff;
        padding-left: 2em;
        padding-right: 2em;

        .document-search{
            margin: 2em auto;
        }

        .document-content{
            min-height: 480px;
            h1,h2,h3,h4,h5,h6{
                color: rgba(0,0,0,.8);
                a{
                    color: rgba(0,0,0,.8);
                }
            }
            h1{
                margin-top: 2rem;
                margin-bottom: 1rem;
                font-size: 3rem;
                &.anchorjs-heading{
                    font-size: 2.1rem;
                }
            }
            h2{
                font-size: 1.8rem;
            }
            h3{
                font-size: 1.6rem;
            }
            h4{
                font-size: 1.4rem;
            }
            h5{
                font-size: 1.2rem;
            }
            h6{
                font-size: 1rem;
            }
            .markdown-sync{
                h1{
                    font-size: 2.1rem;
                    margin-top: 0;
                }
            }
            .list-icons{
                .docs-section{
                    transition: all .1s cubic-bezier(.7,0,.3,1);
                    display: block;
                    text-align: center;
                    img{
                        opacity: .8;
                        transform: scale(.95);
                        margin: 1.5em auto;
                    }
                    &:hover{
                        img{
                            transform: scale(1);
                        }
                    }
                    h2{
                        margin-bottom: 1rem;
                    }
                    p{
                        line-height: 180%;
                    }
                }
            }

            .list-general{
                margin-left: 15px;
                margin-right: 15px;
                h3{
                    a{
                        text-decoration: underline;
                    }
                }
                p{
                    margin: 1rem 0 2rem 0;
                    line-height: 160%;
                }
            }

            .list-articles{
                padding: 2rem 0;
                li{
                    padding-bottom: 2.5rem;
                    h2{
                        margin-bottom: .85rem;
                        a{
                            text-decoration: underline;
                        }
                    }
                    p{
                        line-height: 160%;
                    }
                    ul{
                        padding: 1rem 0 0 0;
                        li{
                            padding-top: 1.25rem;
                            padding-bottom: 0;
                            &:nth-child(1),&:nth-child(2){
                                padding-top: 0;
                            }
                            h5{
                                margin-bottom: .5rem;
                                a{
                                    text-decoration: underline;
                                }
                            }
                        }
                    }
                }
            }

            

            .result-list{
                border: 1px solid #f5f5f5;
                display: none;
                
                li{
                    border-top: 1px solid #f5f5f5;
                    padding: 1rem;
                    clear: both;
                    &:hover{
                        background-color: #f0fae9;
                    }
                    &:first-child{
                        border-top: none;
                    }
                    .type-icon{
                        width: 8%;
                        display: inline-block;
                        text-align: right;
                        font-size: 2rem;
                        a{
                            color: #000;
                            display: inline-block;
                            width: 2rem;
                        }
                    }
                    .type-context{
                        width: 90%;
                        display: inline-block;
                        font-size: .9rem;
                        vertical-align: top;
                        padding-left: 1%;
                        padding-top: .2rem;
                        h5{
                            font-size: 1rem;
                            font-weight: 600;
                        }
                        .type-description{
                            margin: .8rem 0;
                            line-height: 160%;
                        }
                    }
                }
            }
        }
    }
}

.hasnt-sidebar{
    padding-top: 1rem;
    
    .consulting-filter{
        margin-top: 2rem;
        margin-bottom: 3rem;
        .form-control{
            width: 100%;
        }
    }

    .consulting-list{
        margin-bottom: 3rem;
        .topic{
            width: 80%;
            display: inline-block;
        }
        .category{
            width: 12%;
            display: inline-block;
        }

        .consulting-heading{
            padding: 20px 15px;
            border-bottom: 1px solid #f5f5f5;
            font-weight: bold;
        }
        ul{
            li{
                padding: 20px 15px;
                border-bottom: 1px solid #f5f5f5;
                h4{
                    margin-bottom: 1rem;
                    a{
                        color: #5a6d71;
                        &:hover{
                            text-decoration: underline;
                        }
                    }
                }
                .time-info{
                    font-size: .8rem;
                }
                .category{
                    p{
                        padding: .5rem;
                        text-align: center;
                        font-size: .8rem;
                        border-radius: 12px;
                        a{
                            color: #ffffff;
                        }
                    }
                }
            }
        }
    }

    .consulting-detail{
        padding: 4rem 0;
        .consulting-detail-question,.consulting-detail-answer{
            padding: 1rem 2rem;
            background-color: rgba(127,148,153,.08);
            border: 1px solid rgba(127,148,153,.15);
            position: re;
            border-radius: 1rem;
            margin-top: 3rem;
            font-size: .9rem;
            &:first-child{
                margin-top: 0;
            }
            .consulting-detail-heading{
                margin-bottom: 1rem;
                color: #5a6d71;
            }
            .consulting-detail-title{
                height: 2rem;
                padding: 0 1rem;
                margin-bottom: 1rem;
                h1{
                    font-size: 2rem;
                }
                .category{
                    height: 1.6rem;
                    line-height: 1.6rem;
                    padding: 0 2rem;
                    border-radius: .9rem;
                    a{
                        color: #ffffff;
                    }
                }
            }
            .consulting-detail-content{
                padding: 1rem 2rem;
            }
        }
        .consulting-detail-answer{
            background-color: rgba(163,219,120,.23);
            border: 1px solid rgba(163,219,120,.3);
        }
        
    }
}

.search-list{
    min-height: 540px;
    .search-title{
        margin: 1rem 0 2rem 0;
    }
    ul{
        margin-bottom: 4rem;
        li{
            border: 2px solid rgba(127,148,153,.33);
            padding: 1.5rem 3rem;
            transition: border 150ms ease;
            margin-top: 2rem;
            &:first-child{
                margin-top: 0;
            }
            h4{
                margin-bottom: .6rem;
                a{
                    color: @greenColor;
                }
            }
            .time-info{
                margin-bottom: .6rem;
                font-size: .85rem;
            }
            .result-description{
                color: #71888e;
                line-height: 160%;
            }
            &:hover{
                border-color: #abb9bc;
                h4{
                    a{
                        color: #2aa35b;
                    }
                }
                .time-info{
                    color: #000000;
                }
                .result-description{
                    color: #445356;
                }
            }
        }
    }
}

#modalConsulting,.consult-create{
    margin: 3rem auto;
    .form-heading{
        .form-group{
            margin-bottom: 0;
        }
    }

    .consult-submit{
        margin-top: 2rem;
        text-align: right;
        button{
            padding-left: 2rem;
            padding-right: 2rem;
        }
    }

    .wmd-panel{
        width: 100%;
        margin-top: 2rem;
        @wmdHeight: 320px;
        .panel-header{
            height: 4rem;
            position: relative;
            z-index: 1;
            .wmd-button{
                height: 35px;
                padding: -10px 0 -5px 0 !important;
                .wmd-button-row {
                    position: relative; 
                    margin-left: 5px;
                    margin-right: 5px;
                    margin-bottom: 5px;
                    margin-top: 10px;
                    padding: 0px;  
                    height: 20px;
                }
            }
            .tips-title{
                position: absolute;
                height: 20px;
                font-size: .8rem;
                bottom: 0;
                left: 0;
                padding-left: .2rem;
            }
        }
        .wmd-input { 
            height: @wmdHeight;
            width: 100%;
            background-color:#ffffff;
            border: 1px solid #a9a9a9;
            padding: 1rem;
            &:focus{
                border: 1px solid @greenColor;
            }
        }
        .preview-with-scroll{
            height: @wmdHeight;
            position: relative;
            .wmd-preview{
                min-height: @wmdHeight;
                background-color: #e7ecec;
                color: #000000;
                padding: 1rem;
            }
        }
    }

    
    
    
    
    
    
    
    .wmd-button {
        width: 20px;
        height: 20px;
        padding-left: 2px;
        padding-right: 3px;
        position: absolute;
        display: inline-block;
        list-style: none;
        cursor: pointer;
    }
    
    .wmd-button > span {
        background-image: url(../images/wmd-buttons.png);
        background-repeat: no-repeat;
        background-position: 0px 0px;
        width: 20px;
        height: 20px;
        display: inline-block;
    }
}

.wmd-prompt-background
{
    background-color: Black;
}

.wmd-prompt-dialog
{
    border: 1px solid #999999;
    background-color: #F5F5F5;
}

.wmd-prompt-dialog > div {
    font-size: 0.8em;
    font-family: arial, helvetica, sans-serif;
}


.wmd-prompt-dialog > form > input[type="text"] {
    border: 1px solid #999999;
    color: black;
}

.wmd-prompt-dialog > form > input[type="button"]{
    border: 1px solid #888888;
    font-family: trebuchet MS, helvetica, sans-serif;
    font-size: 0.8em;
    font-weight: bold;
}

.pagination-container{
    nav{
        text-align: center;
    }
}

.download-umbraco{
    background-color: @greenBackgroundColor;
    text-align: center;
    padding: 2rem 0 4rem 0;
    .dl-content{
        width: 640px;
        margin: 0 auto;
        h1{
            font-size: 3rem;
            margin-bottom: 2rem;
            color: #ffffff;
            font-weight: 100;
        }
        p{
            font-size: 1.3rem;
            margin: 0 auto 1.5rem;
            line-height: 160%;
            color: #000;
            &.small{
                font-size: .9rem;
            }
        }
        #downloadButton{
            transition: box-shadow .2s;
            margin-bottom: 1rem;
        }
        .pm-nuget{
            display: block;
            width: 300px;
            position: relative;
            margin: 0 auto;
            &:before{
                content: "PM>";
                position: absolute;
                top: 50%;
                left: 0px;
                opacity: .9;
                color: #ffffff;
                font-size: .8rem;
                transform: translate(25px,-46%);
            }
            .pre{
                background-color: #333;
                color: #fff;
                line-height: 1.4em;
                padding: 8px 25px 8px 50px;
                border-radius: 5px;
                border: none;
                font-size: .8rem;
                text-align: center;
                width: 100%;
            }
        }
    }
    .archive{
        margin-top: 3rem;
    }
}

footer{
    width: 100%;
    background-color: #161616;
    padding: 2em 0;
    color: #ffffff;
    font-size: .8em;
    .footer{
        line-height: 1.5;
        text-align: center;
    }
}